using System;
using System.Collections.Generic;
using CMS.Core.Domain;

namespace CMS.Core.DataInterfaces
{
    /// <summary>
    /// Since this extends the <see cref="IDao{TypeOfListItem, IdT}" /> behavior, it's a good idea to 
    /// place it in its own file for manageability.  In this way, it can grow further without
    /// cluttering up <see cref="IDaoFactory" />.
    /// </summary>
    public interface IBaiVietDao : IDao<BaiViet, System.Int32>
    {
        IList<BaiViet> GetAllBaiVietWithChucNang(int MaChucNang);
        IList<BaiVietTheLoai> GetAllTheLoaiWithChucNang(int MaChucNang);
        IList<BaiViet> GetAllBaiVietOtherBaiViet(int MaTheLoai, int MaBaiViet);
        IList<BaiViet> GetNewsTop5();
        Int32 GetCountByTheLoai(Int32 maTheLoai);
        IList<BaiViet> FilterBaiViets(int MaChucNang, int MaTheLoai, string TieuDe, string NguonTin,
                                string TrangThai, string StartDate, String EndDate);
    }
}
